#!/bin/sh

# shutdown cit-server
kill `lsof -i -n -P | grep TCP | grep 8000 | tr -s " " "\n" | sed -n 2p`
# eureka-server
kill `lsof -i -n -P | grep TCP | grep 8100 | tr -s " " "\n" | sed -n 2p`
# cit-client
kill `lsof -i -n -P | grep TCP | grep 8300 | tr -s " " "\n" | sed -n 2p`

echo "All server shutdown..."
